import { FC } from "react";

export interface RouteNoCompType{
  path: string
}
export interface RouteBaseType extends RouteNoCompType{
  component: React.LazyExoticComponent<FC>;
}
export interface RouteNameType extends RouteBaseType{
  name: string
}
export interface RouteTreeType extends RouteNameType{
  children: Array<RouteType>
}
export interface RouteNoNameTreeType extends RouteBaseType{
  children: Array<RouteType>
}
export interface RouteFullType extends RouteTreeType{
  children: Array<RouteType>
  menuRender: Boolean
  headerRender: Boolean
}
export type RouteType=RouteFullType|RouteNoNameTreeType|RouteTreeType|RouteNameType|RouteBaseType|RouteNoCompType